class HomeDataEntity {
	int code;
	HomeDataData data;
	String message;

	HomeDataEntity({this.code, this.data, this.message});

	HomeDataEntity.fromJson(Map<String, dynamic> json) {
		code = json['code'];
		data = json['data'] != null ? new HomeDataData.fromJson(json['data']) : null;
		message = json['message'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['code'] = this.code;
		if (this.data != null) {
      data['data'] = this.data.toJson();
    }
		data['message'] = this.message;
		return data;
	}
}

class HomeDataData {
	HomeDataDataHead head;
	HomeDataDataService service;
	String id;
	HomeDataDataWorktime worktime;
	String content;

	HomeDataData({this.head, this.service, this.id, this.worktime, this.content});

	HomeDataData.fromJson(Map<String, dynamic> json) {
		head = json['head'] != null ? new HomeDataDataHead.fromJson(json['head']) : null;
		service = json['service'] != null ? new HomeDataDataService.fromJson(json['service']) : null;
		id = json['id'];
		worktime = json['worktime'] != null ? new HomeDataDataWorktime.fromJson(json['worktime']) : null;
		content = json['content'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		if (this.head != null) {
      data['head'] = this.head.toJson();
    }
		if (this.service != null) {
      data['service'] = this.service.toJson();
    }
		data['id'] = this.id;
		if (this.worktime != null) {
      data['worktime'] = this.worktime.toJson();
    }
		data['content'] = this.content;
		return data;
	}
}

class HomeDataDataHead {
	String headtxt;
	List<HomeDataDataHeadHeadpic> headpic;

	HomeDataDataHead({this.headtxt, this.headpic});

	HomeDataDataHead.fromJson(Map<String, dynamic> json) {
		headtxt = json['headtxt'];
		if (json['headpic'] != null) {
			headpic = new List<HomeDataDataHeadHeadpic>();(json['headpic'] as List).forEach((v) { headpic.add(new HomeDataDataHeadHeadpic.fromJson(v)); });
		}
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['headtxt'] = this.headtxt;
		if (this.headpic != null) {
      data['headpic'] =  this.headpic.map((v) => v.toJson()).toList();
    }
		return data;
	}
}

class HomeDataDataHeadHeadpic {
	String src;

	HomeDataDataHeadHeadpic({this.src});

	HomeDataDataHeadHeadpic.fromJson(Map<String, dynamic> json) {
		src = json['src'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['src'] = this.src;
		return data;
	}
}

class HomeDataDataService {
	String vxservice;
	String pic;

	HomeDataDataService({this.vxservice, this.pic});

	HomeDataDataService.fromJson(Map<String, dynamic> json) {
		vxservice = json['vxservice'];
		pic = json['pic'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['vxservice'] = this.vxservice;
		data['pic'] = this.pic;
		return data;
	}
}

class HomeDataDataWorktime {
	String startTime;
	String endTime;

	HomeDataDataWorktime({this.startTime, this.endTime});

	HomeDataDataWorktime.fromJson(Map<String, dynamic> json) {
		startTime = json['start_time'];
		endTime = json['end_time'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['start_time'] = this.startTime;
		data['end_time'] = this.endTime;
		return data;
	}
}
